package com.css.dzj.dzjap.modules.lawenforcesuper.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

@Entity
@Table(name = "GENERAL_WORK_INFO", schema = "DZJAP", catalog = "")
public class GeneralWorkInfoEntity {
    private String id;
    private String taskId;
    private String taskTitle;
    private String taskContent;
    private String enterpriseNotice;
    private Date createTime;
    private Date updateTime;
    private String createPerson;
    private String updatePerson;
    private String remarks;
    private String createPersonLocation;
    private String createPersonUnit;
    private String industryNature;
    private Integer extratNum;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "TASK_ID")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "TASK_TITLE")
    public String getTaskTitle() {
        return taskTitle;
    }

    public void setTaskTitle(String taskTitle) {
        this.taskTitle = taskTitle;
    }

    @Basic
    @Column(name = "TASK_CONTENT")
    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    @Basic
    @Column(name = "ENTERPRISE_NOTICE")
    public String getEnterpriseNotice() {
        return enterpriseNotice;
    }

    public void setEnterpriseNotice(String enterpriseNotice) {
        this.enterpriseNotice = enterpriseNotice;
    }

    @Basic
    //@JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "CREATE_PERSON")
    public String getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    @Basic
    @Column(name = "UPDATE_PERSON")
    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

    @Basic
    @Column(name = "REMARKS")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Basic
    @Column(name = "CREATE_PERSON_LOCATION")
    public String getCreatePersonLocation() {
        return createPersonLocation;
    }

    public void setCreatePersonLocation(String createPersonLocation) {
        this.createPersonLocation = createPersonLocation;
    }

    @Basic
    @Column(name = "CREATE_PERSON_UNIT")
    public String getCreatePersonUnit() {
        return createPersonUnit;
    }

    public void setCreatePersonUnit(String createPersonUnit) {
        this.createPersonUnit = createPersonUnit;
    }

    @Basic
    @Column(name = "INDUSTRY_NATURE")
    public String getIndustryNature() {
        return industryNature;
    }

    public void setIndustryNature(String industryNature) {
        this.industryNature = industryNature;
    }

    @Basic
    @Column(name = "EXTRAT_NUM")
    public Integer getExtratNum() {
        return extratNum;
    }

    public void setExtratNum(Integer extratNum) {
        this.extratNum = extratNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GeneralWorkInfoEntity that = (GeneralWorkInfoEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(taskId, that.taskId) &&
                Objects.equals(taskTitle, that.taskTitle) &&
                Objects.equals(taskContent, that.taskContent) &&
                Objects.equals(enterpriseNotice, that.enterpriseNotice) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(createPerson, that.createPerson) &&
                Objects.equals(updatePerson, that.updatePerson) &&
                Objects.equals(remarks, that.remarks) &&
                Objects.equals(createPersonLocation, that.createPersonLocation) &&
                Objects.equals(createPersonUnit, that.createPersonUnit) &&
                Objects.equals(industryNature, that.industryNature) &&
                Objects.equals(extratNum, that.extratNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, taskId, taskTitle, taskContent, enterpriseNotice, createTime, updateTime, createPerson, updatePerson, remarks, createPersonLocation, createPersonUnit, industryNature, extratNum);
    }
}
